
import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import*
testCase28='DBshop028_删除标签组流程'
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'商品管理','商品标签','商品标签分组')
firefox.find_element_by_link_text('删除').click()#点击删除
firefox.switch_to.alert.accept()# 处理弹窗
time.sleep(4)
try:
    firefox.find_element_by_xpath('//td[text()="华为老大"]')#断言字段华为老大
    writeLog('%s 测试不通过'%testCase28)
    getPhoto(firefox)
except:
    writeLog('%s 测试通过'%testCase28)

firefox.quit()